<include file="/public/header" />
<style>
    @media screen and (min-width: 768px) {
    .layui-form-item .layui-input-inline {
        width: 300px;
    }

    table {
        border: 1px solid #e6e6e6;
    }

    table td {
        padding: 5px;
        padding-left: 8px;
        border: 1px solid #e6e6e6;
    }

    table td .layui-form-radio>i {
        font-size: 18px;
    }

    table td .layui-form-radio {
        margin: 0;
        padding: 0;
    }
    .layui-colla-title {
        height: 50px;
        line-height: 50px;
        padding-left: 10px;
    }
    .layui-colla-content {
        overflow: hidden;
        /* padding: 20px; */
    }
    .layui-colla-title {
        background-color: #fff;
    }
    .layui-colla-content, .layui-colla-item {
        border: none;
        /* margin-bottom: 5px; */
    }
    .layui-collapse .layui-colla-item .layui-colla-title i.layui-icon {
        margin-right: 5px;
    }
    .layui-colla-icon {
        display: none;
    }

    .layui-card-header .layui-icon {
        left: 5px;
        position:unset;
        margin-right: 5px;
    }
}

</style>
<div class="layui-fluid">
    <div class="layui-row">
        <div class="layui-card">
            <div class="layui-card-body">
            <form id="baseForm" action="{:url('/index/baseSet')}"  lay-filter="baseForm" class="layui-form layui-row model-form" wid100 > 
              <div class="layui-tab layui-tab-brief"  >
                <ul class="layui-tab-title">
                  <li class="layui-this">{:__('网站设置')}</li>
                  <li>{:__('核心设置')}</li>
                  <li>{:__('附件设置')}</li>
                  <li>{:__('图片水印')}</li> 
                  <li>{:__('视频设置')}</li>
                  <li>{:__('接口配置')}</li>
                  <li>{:__('用户中心')}</li> 
                  <li>{:__('自定义变量')}</li> 
                </ul>
                <div class="layui-tab-content" >
                  <div class="layui-tab-item layui-show">
                    <div class="layui-form-item ">
                        <label class="layui-form-label">{:__('网站名称')}</label>
                        <div class="layui-input-inline">
                            <input type="text" name="site[site_name]" autocomplete="off" value="{$config.site.site_name}" class="layui-input">
                        </div>
                        <div class="layui-form-mid layui-word-aux"> <i class="layui-icon layui-icon-about" lay-tips="* 网站的标题，适用于全站变量"></i> </div>    
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">{:__('网站域名')}</label>
                        <div class="layui-input-inline">
                             <input type="text" name="site[site_url]" autocomplete="off" value="{$config.site.site_url}" class="layui-input">
                         </div> 
                         <div class="layui-form-mid layui-word-aux"> * {:__('不带HTTP网站地址。')}</div>                     
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">{:__('站点LOGO')}</label>
                        <div class="layui-input-inline">
                            <input type="text" name="site[site_logo]" value="{$config.site.site_logo}" 
                            placeholder="请上传站点LOGO图" class="layui-input logo">
                        </div>
                        <button type="button" 
                            class="layui-btn layui-btn-normal" 
                            lay-upload=""
                            lay-input="logo" 
                            lay-images="imgsrc" 
                            lay-data="{url: '/upload/logo'}" > 
                            <i class="layui-icon layui-icon-upload"></i>{:__('上传图片')}
                        </button>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <div class="layui-upload-logo">
                                <dl>
                                <dt> <img class="imgsrc" src="{$config.site.site_logo}" alt="{:__('站点LOGO')}" ></dt>
                                <dd class="layui-badge" onclick="javascript:layer.msg('好像没写代码！','error')" >{:__('删除')}</dd>
                                </dl>
                            </div>
                        </div>
                    </div>

                     <div class="layui-form-item">
                        <label class="layui-form-label">{:__('网站HTTP地址')}</label>
                        <div class="layui-input-inline" >
                             <input type="text" name="site[site_http]" autocomplete="off" value="{$config.site.site_http}" class="layui-input">
                         </div> 
                         <div class="layui-form-mid layui-word-aux">* {:__('网站HTTP/HTTPS地址，结尾必需加斜杆 /。')}</div>                     
                     </div>  
     
                     <div class="layui-form-item">
                        <label class="layui-form-label">{:__('安装路径')}</label>
                        <div class="layui-input-inline" >
                             <input type="text" name="site[site_path]" autocomplete="off" value="{$config.site.site_path}" class="layui-input">
                         </div> 
                         <div class="layui-form-mid layui-word-aux">* {:__('网站安装路径，一般不需要修改，结尾必需加斜杆 /。')}</div>                     
                     </div>  
     
                     <div class="layui-form-item">
                        <label class="layui-form-label">{:__('备案信息')}</label>
                        <div class="layui-input-inline" >
                             <input type="text" name="site[site_icp]" autocomplete="off" value="{$config.site.site_icp}" class="layui-input">
                         </div>                     
                     </div>  
     
                     <div class="layui-form-item">
                        <label class="layui-form-label">{:__('站长邮箱')}</label>
                        <div class="layui-input-inline" >
                             <input type="text" name="site[site_email]" autocomplete="off" value="{$config.site.site_email}" class="layui-input">
                        </div>
                        <div class="layui-form-mid layui-word-aux"> <i class="layui-icon layui-icon-about" lay-tips="* {:__('用于接受系统反馈邮件，可以单独设置！')}"></i> </div>                   
                     </div>  
     
                     <div class="layui-form-item layui-col-md5">
                        <label class="layui-form-label">{:__('关键字')}</label>
                        <div class="layui-input-block" >
                             <input type="text" name="site[site_keyword]" autocomplete="off" value="{$config.site.site_keyword}" class="layui-input">
                         </div>                  
                     </div> 

                     <div class="layui-form-item layui-col-md5">
                        <label class="layui-form-label">{:__('网站描述')}</label>
                        <div class="layui-input-block" >
                             <input type="text" name="site[site_description]" autocomplete="off" value="{$config.site.site_description}" class="layui-input">
                         </div>                    
                     </div>  
     
                     <div class="layui-form-item layui-col-md5">
                        <label class="layui-form-label">{:__('统计代码')}</label>
                        <div class="layui-input-block" >
                            <textarea name="site[site_total]" class="layui-textarea" placeholder="{:__('请输入第三方统计代码')}">{$config.site.site_total}</textarea>
                        </div>                  
                     </div>  
                     <div class="layui-form-item layui-col-md5">
                        <label class="layui-form-label">{:__('版权信息')}</label>
                        <div class="layui-input-block">
                             <textarea name="site[site_copyright]" class="layui-textarea" placeholder="{:__('请输入网站版权信息')}">{$config.site.site_copyright}</textarea>
                        </div>      
                     </div>
                  </div>
                  <div class="layui-tab-item">

                    <div class="layui-form-item">
                        <label class="layui-form-label">{:__('授权码')}</label>
                        <div class="layui-input-inline" >
                            <input type="text" name="auth[auth_code]" autocomplete="off" value="{$config.auth.auth_code}" class="layui-input">
                        </div>
                        <div class="layui-form-mid layui-word-aux">
                            <i class="layui-icon layui-icon-password" lay-tips="* {:__('商业版本授权码，非授权版本可留空！')}" ></i>
                        </div>                                        
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">{:__('加密KEY')}</label>
                        <div class="layui-input-inline" >
                            <input type="text" name="auth[auth_key]" autocomplete="off" value="{$config.auth.auth_key}" class="layui-input">
                        </div>
                        <div class="layui-form-mid layui-word-aux">
                            <i class="layui-icon layui-icon-vercode" lay-tips="* {:__('系统全局加密的KEY，初始化安装自动生成！')}" ></i>
                        </div>                                        
                    </div>  

                    <div class="layui-form-item">
                        <label class="layui-form-label">{:__('全文检索功能')}</label>
                        <div class="layui-input-inline">
                            <input type="radio" name="fulltext[search_status]"  lay-display="fulltext" lay-filter="radioStatus"
                            value="1" title="{:__('开启')}"  <if condition="$config['fulltext']['search_status'] eq 1 "> checked </if> >
                            <input type="radio" name="fulltext[search_status]"  lay-display="fulltext" lay-filter="radioStatus"
                            value="0" title="{:__('关闭')}"  <if condition="$config['fulltext']['search_status'] eq 0 "> checked </if>>
                        </div>    
                        <div class="layui-form-mid layui-word-aux">* {:__('适用于为用户提供丰富的检索结果展示！')}</div>           
                    </div>
                    
                    <div class="fulltext" <eq name="$config['fulltext']['search_status']" value="0" > style="display:none;" </eq> >
                        <div class="layui-form-item">
                            <label class="layui-form-label">{:__('全文索引类型')}</label>
                            <div class="layui-input-inline">
                                <input type="radio" name="fulltext[search_model]" style="clear: both;" 
                                value="XunSearch" title="{:__('迅搜')}" <if condition="$config['fulltext']['search_model'] eq 'XunSearch'"> checked </if> >
                                <input type="radio" name="fulltext[search_model]"
                                value="ElasticSearch" title="{:__('ElasticSearch')}"  <if condition="$config['fulltext']['search_model'] eq 'ElasticSearch'"> checked </if>>
                            </div>    
                            <div class="layui-form-mid layui-word-aux">* {:__('基于国产XunSearch与分布式ElasticSearch全文检索功能')}</div> 
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">{:__('用户管理日志')}</label>
                        <div class="layui-input-inline">
                            <input type="radio" name="logs[admin_log_status]"   
                            value="1" title="开启"  <if condition="$config['logs']['admin_log_status'] eq 1 "> checked </if> >
                            <input type="radio" name="logs[admin_log_status]"   
                            value="0" title="关闭"  <if condition="$config['logs']['admin_log_status'] eq 0 "> checked </if>>
                        </div>    
                        <div class="layui-form-mid layui-word-aux">* {:__('记录用户管理后台操作日志')}</div>           
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">{:__('系统错误日志')}</label>
                        <div class="layui-input-inline">
                            <input type="radio" name="logs[system_log_status]"
                            value="1" title="开启"  <if condition="$config['logs']['system_log_status'] eq 1 "> checked </if> >
                            <input type="radio" name="logs[system_log_status]"   
                            value="0" title="关闭"  <if condition="$config['logs']['system_log_status'] eq 0 "> checked </if>>
                        </div>    
                        <div class="layui-form-mid layui-word-aux"><font color="red">* </font>{:__('系统全局错误异常记录，建议开启监测')}</div>           
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">{:__('清理非本站链接')}</label>
                        <div class="layui-input-inline">
                            <input type="radio" name="site[site_notlink]"
                            value="1" title="开启"  <if condition="$config['site']['site_notlink'] eq 1 "> checked </if> >
                            <input type="radio" name="site[site_notlink]"   
                            value="0" title="关闭"  <if condition="$config['site']['site_notlink'] eq 0 "> checked </if>>
                        </div>    
                        <div class="layui-form-mid layui-word-aux"><font color="red">* </font>{:__('开启后发送内容自动清理非本站链接')}</div>           
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">{:__('插件冲突缓存')}</label>
                        <div class="layui-input-inline">
                            <input type="radio" name="plugin[mutex_file]"
                            value="1" title="开启"  <if condition="$config['plugin']['mutex_file'] eq 1 "> checked </if> >
                            <input type="radio" name="plugin[mutex_file]"   
                            value="0" title="关闭"  <if condition="$config['plugin']['mutex_file'] eq 0 "> checked </if>>
                        </div>    
                        <div class="layui-form-mid layui-word-aux"><font color="red">* </font>{:__('安装插件的时候是否缓存冲突文件')}</div>           
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">{:__('缓存开关')}</label>
                        <div class="layui-input-inline">
                            <input type="radio" name="cache[cache_status]" lay-display="cache_status" lay-filter="radioStatus"
                            value="1" title="开启"  <if condition="$config['cache']['cache_status'] eq 1 "> checked </if> >
                            <input type="radio" name="cache[cache_status]" lay-display="cache_status" lay-filter="radioStatus"
                            value="0" title="关闭"  <if condition="$config['cache']['cache_status'] eq 0 "> checked </if>>
                        </div>    
                        <div class="layui-form-mid layui-word-aux">* {:__('开启数据库缓存会提高网站性能！')}</div>           
                    </div>
                    
                    <div class="cache_status" <eq name="$config['cache']['cache_status']" value="0" > style="display:none;" </eq> >
                        <div class="layui-form-item">
                            <label class="layui-form-label">{:__('缓存方式')}</label>
                            <div class="layui-input-inline" > 
                               <select name="cache[cache_type]" lay-display="cache_type" lay-disable="file" lay-filter="selectStatus" class="ctype" >                
                                 <option value="file" <if condition="$config['cache']['cache_type'] eq 'file'">selected</if>  >file</option>
                                 <option value="redis" <if condition="$config['cache']['cache_type'] eq 'redis'">selected</if>   >redis</option>
                                 <option value="memcached" <if condition="$config['cache']['cache_type'] eq 'memcached'">selected</if> >memcached</option>
                               </select>
                            </div>
                            <div class="layui-form-mid layui-word-aux">
                            <i class="layui-icon layui-icon-about" lay-tips="{:__('使用Redis缓存方式,出错会抛出Connection refused！')}"></i></div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">{:__('缓存时间')}</label>
                            <div class="layui-input-inline" >
                                 <input type="text" name="cache[cache_time]" autocomplete="off" value="{$config.cache.cache_time}" class="layui-input">
                            </div>
                            <div class="layui-form-mid layui-word-aux">* {:__('单位 /秒')}</div>                                       
                        </div> 
                         
                        <div class="cache_type" <if condition="$config['cache']['cache_type'] eq 'file' or $config['cache']['cache_type'] eq ''">style="display:none;" </if> >
                            <div class="layui-form-item">
                                <label class="layui-form-label">{:__('服务器IP')}</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="cache[cache_host]" placeholder="{:__('缓存服务器IP')}" value="{$config['cache']['cache_host']}" 
                                    class="layui-input chost" >
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">{:__('端  口')}</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="cache[cache_port]" placeholder="{:__('缓存服务器端口')}" value="{$config['cache']['cache_port']}" 
                                    class="layui-input cport" >
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">{:__('数据库')}</label>
                                <div class="layui-input-inline">
                                    <input type="number" min="1" max="16" maxlength="1" name="cache[cache_select]" placeholder="{:__('缓存服务redis库 1- 16')}" value="{$config['cache']['cache_select']}" 
                                    class="layui-input cuser" >
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">{:__('账  号')}</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="cache[cache_user]" placeholder="{:__('缓存服务账号,没有请留空')}" value="{$config['cache']['cache_user']}" 
                                    class="layui-input cuser" >
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">{:__('密  码')}</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="cache[cache_pass]" placeholder="{:__('缓存服务密码,没有请留空')}" value="{$config['cache']['cache_pass']}" 
                                    class="layui-input cpass" >
                                </div>
                                <button type="button" class="layui-btn layui-btn-primary" 
                                lay-ajax="" 
                                lay-url="{:url('/index/testCache')}" 
                                lay-object="type:ctype,host:chost,port:cport,user:cuser,pass:cpass" >{:__('测试连接')}</button>
                            </div>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label" >{:__('关闭网站')}</label>
                        <div class="layui-input-inline" >
                             <input type="radio" name="site[site_status]"   
                             value="1" title="是"  <if condition="$config['site']['site_status'] eq 1 "> checked </if> >
                             <input type="radio" name="site[site_status]"   
                             value="0" title="否" <if condition="$config['site']['site_status'] eq 0 "> checked </if> >
                        </div>   
                        <div class="layui-form-mid layui-word-aux">* {:__('关闭网站，全站会显示关闭提示！')}</div>                
                     </div> 

                     <div class="layui-form-item layui-col-md5">
                        <label class="layui-form-label">{:__('提示信息')}</label>
                        <div class="layui-input-block" >
                            <textarea id="site_notice" name="site[site_notice]" lay-verify="siteClose" type="layui-textarea" >{$config.site.site_notice}</textarea>
                        </div>                                       
                    </div> 
                  </div>
                  
                  <div class="layui-tab-item">
                    <div class="layui-form-item ">
                        <label class="layui-form-label">{:__('保存路径')}</label>
                        <div class="layui-input-inline" >
                            <input type="text" name="upload[upload_path]" autocomplete="off" value="{$config.upload.upload_path}" class="layui-input">
                        </div> 
                         <label class="layui-form-label">{:__('附件保存风格')}</label>
                        <div class="layui-input-inline" >
                            <input type="text" name="upload[upload_style]" autocomplete="off" value="{$config.upload.upload_style}" class="layui-input">
                        </div>                     
                        <div class="layui-form-mid layui-word-aux">* 附件的保存路径和风格。{:__('提示信息')}</div>  
                    </div> 
                    
                    <div class="layui-form-item ">
                      <label class="layui-form-label">{:__('图片类型')}</label>
                      <div class="layui-input-inline" >
                        <input type="text" name="upload[upload_class][images]" autocomplete="off" value="{$config.upload.upload_class.images}" class="layui-input">
                      </div>
                      <label class="layui-form-label">{:__('视频/音频类型')}</label>
                      <div class="layui-input-inline" >
                        <input type="text" name="upload[upload_class][video]" autocomplete="off" value="{$config.upload.upload_class.video}" class="layui-input">
                      </div>
                      <div class="layui-form-mid layui-word-aux">* {:__('附件类型使用,符号分割！')}</div>  
                      <br/><br/>
                      <label class="layui-form-label">{:__('文档类型')}</label>
                      <div class="layui-input-inline" >
                        <input type="text" name="upload[upload_class][document]" autocomplete="off" value="{$config.upload.upload_class.document}" class="layui-input">
                      </div> 
                      <label class="layui-form-label">{:__('其他类型')}</label>
                      <div class="layui-input-inline" >
                        <input type="text" name="upload[upload_class][files]" autocomplete="off" value="{$config.upload.upload_class.files}" class="layui-input">
                      </div> 
                    </div>
    
    
                    <div class="layui-form-item ">
                       <label class="layui-form-label">{:__('FTP附件')}</label>
                        <div class="layui-input-inline" >
                            <select name="upload[upload_ftp]" lay-display="upload_ftp" lay-filter="selectStatus">
                                <option value="1" <eq name="$config['upload']['upload_ftp']" value="1" > selected="" </eq> >{:__('开启')}</option>
                                <option value="0" <eq name="$config['upload']['upload_ftp']" value="0" > selected="" </eq> >{:__('关闭')}</option>
                            </select>
                        </div>
                        <label class="layui-form-label">{:__('是否自动删除')}</label>
                        <div class="layui-input-inline" >
                            <select name="upload[upload_del]">
                                <option value="1" <eq name="$config['upload']['upload_del']" value="1" > selected="" </eq> >{:__('开启')}</option>
                                <option value="0" <eq name="$config['upload']['upload_del']" value="0" > selected="" </eq> >{:__('关闭')}</option>
                            </select>
                        </div>                     
                        <div class="layui-form-mid layui-word-aux">* {:__('文件是否上传至FTP后删除本地文件。不建议开启！')}</div>  
                    </div>
    
                    <!-- FTP下载设置隐藏域  -->
                    <div class="layui-form-item upload_ftp" <if condition="$config['upload']['upload_ftp'] eq 0 "> style="display:none;" </if> >
                        <label class="layui-form-label">{:__('FTP地址')}</label>
                        <div class="layui-input-inline">
                          <input type="text" name="upload[upload_ftp_host]" placeholder="{:__('请输入FTP服务器地址')}" value="{$config['upload']['upload_ftp_host']}" 
                          class="layui-input ftp_host" >
                        </div>
                        <label class="layui-form-label">{:__('FTP端口')}</label>
                        <div class="layui-input-inline">
                          <input type="text" name="upload[upload_ftp_port]" placeholder="{:__('请输入FTP服务器端口')}" value="{$config['upload']['upload_ftp_port']}" 
                          class="layui-input ftp_port" >
                        </div>
                        <div class="layui-form-mid layui-word-aux">*  {:__('上传附件到FTP后，为预留备份可将自动删除关闭。')}</div> <br/><br/>
                        <label class="layui-form-label">{:__('FTP用户名')}</label>
                        <div class="layui-input-inline">
                          <input type="text" name="upload[upload_ftp_user]" placeholder="{:__('请输入FTP服务器用户')}" value="{$config['upload']['upload_ftp_user']}" 
                          class="layui-input ftp_user" >
                        </div>
                        <label class="layui-form-label">{:__('FTP密码')}</label>
                        <div class="layui-input-inline">
                          <input type="text" name="upload[upload_ftp_pass]" placeholder="{:__('请输入FTP服务器密码')}" value="{$config['upload']['upload_ftp_pass']}" 
                          class="layui-input ftp_pass" >
                        </div>
                        <button type="button" class="layui-btn layui-btn-primary" 
                            lay-ajax="" 
                            lay-url="{:url('/index/testFtp')}" 
                            lay-object="host:ftp_host,port:ftp_port,user:ftp_user,pass:ftp_pass"
                            >{:__('测试连接')}</button>
                    </div>
    
    
                    <div class="layui-form-item ">
                        <label class="layui-form-label">{:__('远程图片地址')}</label>
                        <div class="layui-input-inline" >
                            <input type="text" name="upload[upload_http_prefix]" placeholder="{:__('非空则会自动增加远程图片地址')}"
                            value="{$config.upload.upload_http_prefix}" class="layui-input">
                        </div>
                        <label class="layui-form-label">{:__('自动下载图片')}</label>
                        <div class="layui-input-inline" >
                            <select name="upload[upload_http_auto]">
                                <option value="1" <eq name="$config['upload']['upload_http_auto']" value="1" > selected="" </eq> >{:__('开启')}</option>
                                <option value="0" <eq name="$config['upload']['upload_http_auto']" value="0" > selected="" </eq> >{:__('关闭')}</option>
                            </select>
                        </div>  
                        <div class="layui-form-mid layui-word-aux">
                            <font color="red">* {:__('开启后，发表内容会自动将图片下载或上传云空间')}</font>
                        </div>  
                    </div>
    
                    <div class="layui-card-header" style="margin-bottom: 20px;">{:__('云附件配置')}</div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">{:__('存储设置')}</label>
                            <div class="layui-input-inline" >
                                <select name="cloud[status]" lay-display="layui-cloud-oss" lay-filter="selectStatus" >
                                    <option value="1" <eq name="$config['cloud']['status']" value="1" > selected="" </eq> >{:__('开启')}</option>
                                    <option value="0" <eq name="$config['cloud']['status']" value="0" > selected="" </eq> >{:__('关闭')}</option>
                                </select>
                            </div> 
                            <div class="layui-form-mid layui-word-aux" > <font color="red">* {:__('开启云对象存储后，FTP上传默认无效。')}</font></div>  
                        </div>

                        <div class="layui-cloud-oss" <eq name="$config.cloud.status" value="0"> style="display:none;"</eq>  >
                            <div class="layui-form-item">
                                <label class="layui-form-label">{:__('存储类型')}</label>
                                <div class="layui-input-inline" >
                                    <select name="cloud[type]"  lay-selector="aliyun,qcloud" lay-filter="selectStatus" >
                                        <option value="aliyun" <eq name="$config['cloud']['type']" value="aliyun" > selected="" </eq> >{:__('阿里云OSS')}</option>
                                        <option value="qcloud" <eq name="$config['cloud']['type']" value="qcloud" > selected="" </eq> >{:__('腾讯云COS')}</option>
                                    </select>
                                </div> 
                                <div class="layui-form-mid layui-word-aux" >* {:__('目前支持阿里云OSS，腾讯云COS。')}</div>  
                            </div>  
                           
                            <div class="aliyun" <neq name="$config['cloud']['type']" value="aliyun" > style="display:none;" </neq> >
                                 <!-- 上传附件到阿里云OSS，请在阿里云OSS设置水印和微缩图。 -->
                            <div class="layui-form-item" >
                                <label class="layui-form-label">accessId</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="cloud[aliyun][accessId]" placeholder="{:__('请输入accessId')}" value="{$config['cloud']['aliyun']['accessId']}" class="layui-input" >
                                </div>
                                <div class="layui-form-mid layui-word-aux">*  accessId</div>
                            </div>

                            <div class="layui-form-item" >
                                <label class="layui-form-label">accSecret</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="cloud[aliyun][accessSecret]" placeholder="{:__('请输入accessSecret')}" value="{$config['cloud']['aliyun']['accessSecret']}" class="layui-input" >
                                </div>
                                <div class="layui-form-mid layui-word-aux">*  accessSecret</div>
                            </div>   
                            <div class="layui-form-item" >
                                <label class="layui-form-label">bucket</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="cloud[aliyun][bucket]" placeholder="{:__('请输入bucket')}" value="{$config['cloud']['aliyun']['bucket']}" class="layui-input" >
                                </div>
                                <div class="layui-form-mid layui-word-aux">* bucket。  </div>     
                            </div>

                            <div class="layui-form-item" >    
                                <label class="layui-form-label">endpoint</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="cloud[aliyun][endpoint]" placeholder="{:__('请输入endpoint')}" value="{$config['cloud']['aliyun']['endpoint']}" class="layui-input" >
                                </div>
                                <div class="layui-form-mid layui-word-aux">* endpoint。  </div> 
                            </div> 

                            <div class="layui-form-item" >    
                                <label class="layui-form-label">urls</label>
                                <div class="layui-input-inline" >
                                    <input type="text" name="cloud[aliyun][url]" placeholder="url" value="{$config['cloud']['aliyun']['url']}" class="layui-input" >
                                </div>     
                                <div class="layui-form-mid layui-word-aux">* {:__('不要斜杠结尾，此处为URL地址域名。')}</div>  
                            </div>
                            </div>

                            <!-- 腾讯云上传 -->
                            <div class="qcloud" <neq name="$config['cloud']['type']" value="qcloud" > style="display:none;" </neq> >

                                <div class="layui-form-item" >
                                    <label class="layui-form-label">app_id</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="cloud[qcloud][app_id]" placeholder="{:__('请输入app_id')}" value="{$config['cloud']['qcloud']['app_id']}" class="layui-input" >
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">*  app_id </div>
                                </div>

                                <div class="layui-form-item" >
                                    <label class="layui-form-label">secret_id</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="cloud[qcloud][secret_id]" placeholder="{:__('请输入secret_id')}" value="{$config['cloud']['qcloud']['secret_id']}" class="layui-input" >
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">*  secret_id，https://console.cloud.tencent.com/developer</div>
                                </div>

                                <div class="layui-form-item" >
                                    <label class="layui-form-label">secret_key</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="cloud[qcloud][secret_key]" placeholder="{:__('请输入secret_key')}" value="{$config['cloud']['qcloud']['secret_key']}" class="layui-input" >
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">*  secret_key </div>
                                </div>   
                                <div class="layui-form-item" >
                                    <label class="layui-form-label">bucket</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="cloud[qcloud][bucket]" placeholder="{:__('请输入bucket')}" value="{$config['cloud']['qcloud']['bucket']}" class="layui-input" >
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">* {:__('存储桶名称 格式：BucketName,不要带id')}</div>     
                                </div>

                                <div class="layui-form-item" >    
                                    <label class="layui-form-label">region</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="cloud[qcloud][region]" placeholder="{:__('请输入region')}" value="{$config['cloud']['qcloud']['region']}" class="layui-input" >
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">* {:__('region,地区如ap-beijing')} </div> 
                                </div> 

                                <div class="layui-form-item" >    
                                    <label class="layui-form-label">urls</label>
                                    <div class="layui-input-inline" >
                                        <input type="text" name="cloud[qcloud][url]" placeholder="url" value="{$config['cloud']['qcloud']['url']}" class="layui-input" >
                                    </div>     
                                    <div class="layui-form-mid layui-word-aux">* {:__('不要斜杠结尾，此处为URL地址域名。 ')} </div>  
                                </div>
                            </div>
                        </div>                       
                    </div>
                    <!-- ////111 -->
                    <div class="layui-tab-item">
                        <div class="layui-form-item">
                            <label class="layui-form-label">{:__('微缩图')}</label>
                            <div class="layui-input-inline">
                                <select name="upload[upload_thumb]" lay-display="upload_thumb" lay-filter="selectStatus" >
                                <option value="1" <eq name="$config['upload']['upload_thumb']" value="1"> selected="" </eq> >{:__('开启')}</option>
                                <option value="0" <eq name="$config['upload']['upload_thumb']" value="0"> selected="" </eq> >{:__('关闭')}</option>
                                </select>
                            </div>                     
                            <div class="layui-form-mid layui-word-aux">* {:__('上传图片是否自动生成微缩图')}</div>
                        </div>
    
                        <!-- 微缩图隐藏域  -->
                        <div class="layui-form-item upload_thumb" <if condition="$config['upload']['upload_thumb'] eq 0 "> style="display:none;" </if> >
                            <label class="layui-form-label">{:__('宽度 * 高度')}</label>
                            <div class="layui-input-inline" style="width: 145px;">
                                <input type="text" name="upload[upload_thumb_w]" placeholder="{:__('微缩图宽度')}" value="{$config['upload']['upload_thumb_w']}" class="layui-input" >
                            </div>
                            <div class="layui-input-inline" style="width: 145px;">
                                <input type="text" name="upload[upload_thumb_h]" placeholder="{:__('微缩图高度')}" value="{$config['upload']['upload_thumb_h']}" class="layui-input" >
                            </div>
                            <div class="layui-form-mid layui-word-aux">* {:__('(按原图比率缩小/小于该指定大小的图片将不生成缩略图)')} </div> 
                        </div>
    
                        <div class="layui-form-item ">
                        <label class="layui-form-label">{:__('水印设置')}</label>
                            <div class="layui-input-inline">
                                <select name="upload[upload_water]"  lay-display="upload_water" lay-filter="selectStatus" >
                                    <option value="1" <eq name="$config['upload']['upload_water']" value="1"> selected="" </eq> >{:__('开启')}</option>
                                    <option value="0" <eq name="$config['upload']['upload_water']" value="0"> selected="" </eq> >{:__('关闭')}</option>
                                </select>
                            </div>
                            <div class="layui-form-mid layui-word-aux">* {:__('(当水印图片约等于图片%40的时候不增加图片水印)')} </div>
                        </div>
    
                        <!-- 水印设置隐藏域  -->
                        <div class="upload_water"  <if condition="$config['upload']['upload_water'] eq 0 "> style="display:none;" </if>  >
                            
                        <div class="layui-form-item">
                            
                            <label class="layui-form-label">{:__('水印类型')}</label>
                            <div class="layui-input-inline" >
                                <input type="radio" name="upload[upload_water_type]"   
                                value="1" title="{:__('文字水印')}"  <if condition="$config['upload']['upload_water_type'] eq 1 "> checked </if> >
                                <input type="radio" name="upload[upload_water_type]"   
                                value="0" title="{:__('图片水印')}" <if condition="$config['upload']['upload_water_type'] eq 0 "> checked </if> >
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">{:__('水印文字')}</label>
                            <div class="layui-input-inline">
                                <input type="text" name="upload[upload_water_font]" placeholder="{:__('水印文字')}" value="{$config['upload']['upload_water_font']}" class="layui-input" >
                            </div> 
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">{:__('文字大小')}</label>
                            <div class="layui-input-inline">
                                <input type="text" name="upload[upload_water_size]" placeholder="{:__('文字大小')}" value="{$config['upload']['upload_water_size']}" class="layui-input" >
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">{:__('文字颜色')}</label>
                            <div class="layui-input-inline">
                                <input type="text" name="upload[upload_water_color]" 
                                placeholder="{:__('文字颜色')}" value="{$config['upload']['upload_water_color']}" class="layui-input upload_water_color" >
                            </div>
                            <div class="picker" lay-colorpicker="upload_water_color" lay-value="{$config['upload']['upload_water_color']}" ></div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">{:__('透明度')}</label>
                            <div class="layui-input-inline">
                                <div 
                                lay-slider="upload_water_pct"
                                lay-value="{$config['upload']['upload_water_pct']}"
                                style="margin-top: 15px; margin-left: 3px;"  ></div>
                                <input type="hidden" 
                                    name="upload[upload_water_pct]" 
                                    value="{$config['upload']['upload_water_pct']}" 
                                    class="layui-input upload_water_pct" 
                                >
                            </div>
                        </div>         
                        <div class="layui-form-item">
                            <label class="layui-form-label">{:__('水印图片')}</label>
                            <div class="layui-input-inline" >
                            <input type="text" name="upload[upload_water_img]" 
                                placeholder="水印图片" value="{$config['upload']['upload_water_img']}" class="layui-input upload_water_img" >
                            </div>
                            <button type="button" class="layui-btn layui-btn-normal" lay-upload="" lay-input="upload_water_img"
                            lay-data="{url: '{:url('/upload/upload')}'}" 
                             >{:__('上传图片')}</button>                            
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">{:__('水印位置')}</label>
                            <div class="layui-input-inline">
                                <table class="uplpad-pos" width="300" cellspacing="0" cellpadding="0" >
                                    <tbody>
                                        <tr>
                                            <td><input  type="radio" name="upload[upload_water_pos]" value="1" <eq name="$config['upload']['upload_water_pos']" value="1"> checked="" </eq> >{:__('顶部居左')}</td>
                                            <td><input  type="radio" name="upload[upload_water_pos]" value="2" <eq name="$config['upload']['upload_water_pos']" value="2"> checked="" </eq> >{:__('顶部居中')}</td>
                                            <td><input  type="radio" name="upload[upload_water_pos]" value="3" <eq name="$config['upload']['upload_water_pos']" value="3"> checked="" </eq> >{:__('顶部居右')}</td>
                                        </tr>
                                        <tr>
                                            <td><input  type="radio" name="upload[upload_water_pos]" value="4" <eq name="$config['upload']['upload_water_pos']" value="4"> checked="" </eq> >{:__('左边居中')}</td>
                                            <td><input  type="radio" name="upload[upload_water_pos]" value="5" <eq name="$config['upload']['upload_water_pos']" value="5"> checked="" </eq> >{:__('图片中心')}</td>
                                            <td><input  type="radio" name="upload[upload_water_pos]" value="6" <eq name="$config['upload']['upload_water_pos']" value="6"> checked="" </eq> >{:__('右边居中')}</td>
                                        </tr>
                                        <tr>
                                            <td><input  type="radio" name="upload[upload_water_pos]" value="7" <eq name="$config['upload']['upload_water_pos']" value="7"> checked="" </eq> >{:__('底部居左')}</td>
                                            <td><input  type="radio" name="upload[upload_water_pos]" value="8" <eq name="$config['upload']['upload_water_pos']" value="8"> checked="" </eq> >{:__('底部居中')}</td>
                                            <td><input  type="radio" name="upload[upload_water_pos]" value="9" <eq name="$config['upload']['upload_water_pos']" value="9"> checked="" </eq> >{:__('底部居右')}</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>                              

                        </div>
                    </div>
                    <!-- // 视频配置信息开始 -->
                    <div class="layui-tab-item">
                        
                        <div class="layui-form-item" >
                            <label class="layui-form-label">播放器：</label>
                            <div class="layui-input-inline"style="width: 145px;">
                                <input type="text" name="play[play_width]" placeholder="播放器宽度" value="{$config['play']['play_width']}" class="layui-input" >
                            </div>
                            <div class="layui-input-inline"style="width: 145px;">
                                <input type="text" name="play[play_height]" placeholder="播放器高度" value="{$config['play']['play_height']}" class="layui-input" >
                            </div>
                            <div class="layui-form-mid layui-word-aux">* 播放器的高度和宽度设置 </div> 
                        </div>


                        <div class="layui-form-item ">
                            <label class="layui-form-label">开启列表：</label>
                            <div class="layui-input-inline" >
                              <select name="play[play_show]" >
                                  <option value="1">开启</option>
                                  <option value="0" selected="">关闭</option>
                              </select>                       
                            </div>                 
                            <div class="layui-form-mid layui-word-aux">* 附件的保存路径和风格。</div>  
                        </div> 

                        <div class="layui-form-item ">
                           <label class="layui-form-label">广告时长：</label>
                            <div class="layui-input-inline" >
                                <input type="text" name="play[play_second]" autocomplete="off" value="{$config.play.play_second}" class="layui-input">
                            </div> 
                            <div class="layui-form-mid layui-word-aux">* 设置为0则不启用。</div>  
                        </div>

                        <div class="layui-form-item">
                        <label class="layui-form-label">地区列表:</label>
                            <div class="layui-input-block">
                                <input type="text" name="play[play_area]" autocomplete="off" value="{$config.play.play_area}" class="layui-input">
                            </div>  
                        </div>  

                        <div class="layui-form-item">
                        <label class="layui-form-label">年代列表:</label>
                            <div class="layui-input-block">
                                <input type="text" name="play[play_year]" autocomplete="off" value="{$config.play.play_year}" class="layui-input">
                            </div> 
                        </div>  
                        <div class="layui-form-item">
                        <label class="layui-form-label">视频版本:</label>
                            <div class="layui-input-block" >
                                <input type="text" name="play[play_version]" autocomplete="off" value="{$config.play.play_version}" class="layui-input">
                            </div>   
                        </div> 
                        <div class="layui-form-item">
                        <label class="layui-form-label">视频对白:</label>
                            <div class="layui-input-block">
                                <input type="text" name="play[play_language]" autocomplete="off" value="{$config.play.play_language}" class="layui-input">
                            </div> 
                        </div>                
                        <div class="layui-form-item">
                        <label class="layui-form-label">播出周期:</label>
                            <div class="layui-input-block">
                                <input type="text" name="play[play_week]" autocomplete="off" value="{$config.play.play_week}" class="layui-input">
                            </div>  
                        </div> 
                        <div class="layui-form-item">
                        <label class="layui-form-label">缓冲广告:</label>
                            <div class="layui-input-block">
                                <input type="text" name="play[play_playad]" autocomplete="off" value="{$config.play.play_playad}" class="layui-input">
                            </div> 
                        </div>  

                        <div class="layui-form-item">
                        <label class="layui-form-label">下载地址:</label>
                            <div class="layui-input-block">
                                <input type="text" name="play[play_down]" autocomplete="off" value="{$config.play.play_down}" class="layui-input">
                            </div> 
                        </div>  

                        <div class="layui-form-item">
                        <label class="layui-form-label">服务器组:</label>
                            <div class="layui-input-block">
                                <textarea name="play[play_downgorup]" 
                                class="layui-textarea" placeholder="* 请写入提供下载的服务器组">{$config.play.play_downgorup}</textarea>
                                <div class="layui-form-mid layui-word-aux">* 下载服务器前缀，前缀名称$$$对应地址每行一个</div>  
                            </div> 
                        </div>  

                    </div>
                   <!-- // 接口配置信息开始 -->
                    <div class="layui-tab-item">
                        

                        <div class="layui-collapse " lay-accordion="" style="border-style: none;">
                            <div class="layui-colla-item">
                                <h2 class="layui-colla-title"><i class="layui-icon layui-icon-email layui-color-blue" ></i>{:__('SMTP邮件')}</h2>
                                <div class="layui-colla-content layui-show">
                                                  
                                <div class="layui-form-item">
                                   <label class="layui-form-label" >{:__('调试模式')}</label>
                                    <div class="layui-input-inline" >
                                        <input type="radio" name="email[smtp_debug]"   
                                        value="1" title="{:__('开启')}"  <if condition="$config['email']['smtp_debug'] eq 1 "> checked </if> >
                                        <input type="radio" name="email[smtp_debug]"   
                                        value="0" title="{:__('关闭')}" <if condition="$config['email']['smtp_debug'] eq 0 "> checked </if> >
                                    </div>                     
                                    <div class="layui-form-mid layui-word-aux">* {:__('调试模式请在[浏览器开发者工具]查看错误信息')}！</div>                   
                                </div> 
                            
                                <div class="layui-form-item">
                                    <label class="layui-form-label">{:__('服务器状态')}</label>
                                    <div class="layui-input-inline" > 
                                        <div class="layui-form-mid layui-word-aux">
                            
                                            <font color="black">fsockopen</font>
                                            <i class="layui-icon <empty name="$config['fsockopen']">
                                                layui-icon-close-fill layui-color-red  <else/> 
                                                layui-icon-ok-circle layui-color-green</empty> " ></i>&emsp;
                            
                                            <font color="black">stream_socket_client</font>
                                            <i class="layui-icon <empty name="$config['stream_socket_client']">
                                                layui-icon-close-fill layui-color-red  <else/> 
                                                layui-icon-ok-circle layui-color-green</empty> " ></i>
                                        </div>
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">* {:__('发送邮件依赖的函数，如不可用请开启函数扩展')}！</div>
                                </div>
                                
                                <!-- codemirror 编辑器 -->
                                <div class="layui-form-item ">
                                    <label class="layui-form-label">{:__('信息模板')}</label>
                                     <div class="layui-input-inline" >
                                         <div class="layui-form-mid layui-word-aux">
                                             <a href="javascript:void(0)" class="layui-color-blue"
                                             lay-open=""
                                             lay-url="{:url('/tpl/showTpl')}" 
                                             lay-title="邮件模板{:__('')}" 
                                             lay-area="500px,260px" 
                                             lay-offset="30%"
                                             >[{:__('点击编辑')}]</a>
                                         </div>
                                     </div> 
                                </div>

                                <div class="layui-form-item ">
                                   <label class="layui-form-label">{:__('服务器IP')}</label>
                                    <div class="layui-input-inline" >
                                        <input type="text" name="email[smtp_host]" autocomplete="off" value="{$config.email.smtp_host}" 
                                        class="layui-input smtp_host">
                                    </div> 
                                    <div class="layui-form-mid layui-word-aux">* {:__('发送邮箱的smtp地址，如: smtp.qq.com或smtp.gmail.com')}</div>  
                                </div>
                            
                                <div class="layui-form-item ">
                                   <label class="layui-form-label">{:__('邮箱端口')}</label>
                                    <div class="layui-input-inline" >
                                        <input type="text" name="email[smtp_port]" autocomplete="off" value="{$config.email.smtp_port}" 
                                        class="layui-input smtp_port">
                                    </div> 
                                    <div class="layui-form-mid layui-word-aux"><font color="red">* {:__('注意：请阅读STMP服务官方文档获取端口，一般发送失败都是端口问题！')}</font></div>  
                                </div>
                            
                                <div class="layui-form-item ">
                                   <label class="layui-form-label">{:__('用户名')}</label>
                                    <div class="layui-input-inline" >
                                        <input type="text" name="email[smtp_name]" autocomplete="off" value="{$config.email.smtp_name}" 
                                        class="layui-input smtp_name">
                                    </div> 
                                    <div class="layui-form-mid layui-word-aux">* {:__('用于发送邮件显示，默认为管理员')}。</div>  
                                </div>
                            
                                <div class="layui-form-item ">
                                    <label class="layui-form-label">{:__('邮箱帐户')}</label>
                                    <div class="layui-input-inline" >
                                        <input type="text" name="email[smtp_user]" autocomplete="off" value="{$config.email.smtp_user}" 
                                        class="layui-input smtp_user">
                                    </div> 
                                    <div class="layui-form-mid layui-word-aux">* {:__('用于发送给客户的邮件地址')}。</div>
                                </div>
                            
                                <div class="layui-form-item ">
                                   <label class="layui-form-label">{:__('邮箱密码')}</label>
                                    <div class="layui-input-inline" >
                                        <input type="text" name="email[smtp_pass]" autocomplete="off" value="{$config.email.smtp_pass}"
                                         class="layui-input smtp_pass">
                                    </div> 
                                    <div class="layui-form-mid layui-word-aux">* {:__('邮箱密码或授权码')}。</div>
                                </div>
                                <div class="layui-form-item ">
                                   <label class="layui-form-label">{:__('测试邮箱')}</label>
                                    <div class="layui-input-inline" >
                                        <input type="text" name="email[smtp_test]" autocomplete="off" value="{$config.email.smtp_test}" 
                                        class="layui-input smtp_test">
                                    </div>
                                    <button type="button" class="layui-btn layui-btn-normal" 
                                    lay-ajax=""
                                    lay-url="{:url('/index/testEmail')}"
                                    lay-object="smtp_host:smtp_host,smtp_port:smtp_port,smtp_name:smtp_name,smtp_user:smtp_user,smtp_pass:smtp_pass,smtp_test:smtp_test"
                                    ><i class="layui-icon layui-icon-email"></i>
                                        {:__('测试发送')}</button>
                                </div>
                                </div>
                            </div>
                            <div class="layui-colla-item">
                              <h2 class="layui-colla-title"><i class="layui-icon layui-icon-user layui-color-blue" ></i>{:__('社会化登录')}</h2>
                              <div class="layui-colla-content">
                                <!-- // 社会化登录开始 -->
                                <div class="layui-card-header"  style="margin-bottom:20px;" ><i class="layui-icon" style="margin-right: 3px">
                                    <img src="/static/images/interface/qq.png" width="18" height="16" alt="QQ登录" >
                                </i>{:__('QQ登录')}</div> 
                                <div class="layui-form-item">
                                    <label class="layui-form-label">APP_ID</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="social[qq][app_id]" autocomplete="off"  value="{$config['social']['qq']['app_id']}" class="layui-input"  >
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">* {:__('connect.qq.com 申请的appid')}</div>
                                </div> 
                                <div class="layui-form-item">
                                    <label class="layui-form-label">APP_KEY</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="social[qq][app_key]" autocomplete="off" value="{$config['social']['qq']['app_key']}" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">* {:__('connect.qq.com 申请的appkey')}</div>
                                </div>   
                                <div class="layui-form-item">
                                    <label class="layui-form-label">{:__('callback地址')}</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="social[qq][callback]" autocomplete="off" value="{$config['social']['qq']['callback']}" class="layui-input">
                                    </div>  
                                    <div class="layui-form-mid layui-word-aux">* {:__('申请QQ互联登录填写的回调地址')}</div>      
                                </div>
                                <!-- // 微信登录配置 -->
                                <div class="layui-card-header"  style="margin-bottom:20px;" ><i class="layui-icon">
                                    <img src="/static/images/interface/wechat.png" width="16" height="16" alt="{:__('微信登录')}">
                                </i>{:__('微信登录')}</div> 
                                <div class="layui-form-item">
                                    <label class="layui-form-label">APP_ID</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="social[weixin][app_id]" autocomplete="off"  value="{$config['social']['weixin']['app_id']}" class="layui-input"  >
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">* {:__('open.weixin.qq.com 申请的appid')}</div>
                                </div> 
                                <div class="layui-form-item">
                                    <label class="layui-form-label">APP_KEY</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="social[weixin][app_key]" autocomplete="off" value="{$config['social']['weixin']['app_key']}" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">* {:__('open.weixin.qq.com 申请的appkey')}</div>
                                </div>   
                                <div class="layui-form-item">
                                    <label class="layui-form-label">{:__('callback地址')}</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="social[weixin][callback]" autocomplete="off" value="{$config['social']['weixin']['callback']}" class="layui-input">
                                    </div>       
                                    <div class="layui-form-mid layui-word-aux">* {:__('申请微信扫码登录填写的回调地址')}</div>       
                                </div>
                                <!-- // Gitee配置 -->
                                <div class="layui-card-header"  style="margin-bottom:20px;" ><i class="layui-icon">
                                    <img src="/static/images/interface/gitee.jpg" width="16" height="16" alt="{:__('微博登录')}">
                                </i>{:__('Gitee码云')}</div> 
                                <div class="layui-form-item">
                                    <label class="layui-form-label">APP_ID</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="social[gitee][app_id]" autocomplete="off"  value="{$config['social']['gitee']['app_id']}" class="layui-input"  >
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">* {:__('我的应用/应用详情 申请的Client ID')}</div>
                                </div> 
                                <div class="layui-form-item">
                                    <label class="layui-form-label">APP_KEY</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="social[gitee][app_key]" autocomplete="off" value="{$config['social']['gitee']['app_key']}" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">* {:__('我的应用/应用详情 申请的Client Secret')}</div>
                                </div>   
                                <div class="layui-form-item">
                                    <label class="layui-form-label">{:__('callback地址')}</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="social[gitee][callback]" autocomplete="off" value="{$config['social']['gitee']['callback']}" class="layui-input">
                                    </div>        
                                    <div class="layui-form-mid layui-word-aux">* {:__('申请Gitee码云登录填写的回调地址')}</div>  
                                </div>    

                                <!-- // 新浪微博登录 -->
                                <div class="layui-card-header"  style="margin-bottom:20px;" ><i class="layui-icon">
                                    <img src="/static/images/interface/sina.png" width="16" height="16" alt="{:__('微博登录')}">
                                </i>{:__('微博登录')}</div> 
                                <div class="layui-form-item">
                                    <label class="layui-form-label">APP_ID</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="social[weibo][app_id]" autocomplete="off"  value="{$config['social']['weibo']['app_id']}" class="layui-input"  >
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">* {:__('open.weibo.com 申请的appid')}</div>
                                </div> 
                                <div class="layui-form-item">
                                    <label class="layui-form-label">APP_KEY</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="social[weibo][app_key]" autocomplete="off" value="{$config['social']['weibo']['app_key']}" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">* {:__('open.weibo.com 申请的appkey')}</div>
                                </div>   
                                <div class="layui-form-item">
                                    <label class="layui-form-label">{:__('callback地址')}</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="social[weibo][callback]" autocomplete="off" value="{$config['social']['weibo']['callback']}" class="layui-input">
                                    </div>        
                                    <div class="layui-form-mid layui-word-aux">* {:__('申请新浪微博登录填写的回调地址')}</div>  
                                </div>                                
                                <!-- // 社会化登录结束 -->
                              </div>
                            </div>
                            <div class="layui-colla-item">
                              <h2 class="layui-colla-title"><i class="layui-icon layui-icon-rmb layui-color-blue" ></i>{:__('云支付接口')}</h2>
                              <div class="layui-colla-content">
                                <!-- // 支付宝支付开始 -->
                                <div class="layui-card-header"  style="margin-bottom:20px;" ><i class="layui-icon">
                                    <img src="/static/images/interface/alipay.png" width="16" height="16" alt="支付宝支付">
                                </i>{:__('支付宝')}</div>  
                                <div class="layui-form-item">
                                    <label class="layui-form-label">支付模式</label>
                                    <div class="layui-input-inline">
                                        <input type="radio" name="payface[alipay][mode]"   
                                        value="0" title="正式环境" <if condition="$config['payface']['alipay']['mode'] eq  0 "> checked </if> >
                                        <input type="radio" name="payface[alipay][mode]"   
                                        value="1" title="沙箱模式" <if condition="$config['payface']['alipay']['mode'] eq 1 "> checked </if> >
                                    </div>    
                                    <div class="layui-form-mid layui-word-aux"><font color="red">*</font> 沙箱环境下，请使用沙箱版支付宝调试</div>           
                                </div>                                   
                                <div class="layui-form-item">
                                    <label class="layui-form-label">app_id</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="payface[alipay][app_id]" value="{$config.payface.alipay.app_id}" class="layui-input"  >
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">* {:__('支付宝应用appid')}</div> 
                                </div> 
                                <div class="layui-form-item">
                                    <label class="layui-form-label">app_public_cert_path</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="payface[alipay][app_public_cert_path]"  value="{$config.payface.alipay.app_public_cert_path}" class="layui-input">
                                    </div> 
                                    <div class="layui-form-mid layui-word-aux"><font color="red">*</font>  {:__('支付宝RSA2_PKCS1公钥')}</div>        
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">app_secret_cert</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="payface[alipay][app_secret_cert]" value="{$config.payface.alipay.app_secret_cert}" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux"><font color="red">*</font>  {:__('应用RSA2_PKCS1私钥')}</div> 
                                </div>

                                <div class="layui-form-item">
                                    <label class="layui-form-label">return_url</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="payface[alipay][return_url]" value="{$config.payface.alipay.return_url}" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">* {:__('支付成功同步回调地址')}</div> 
                                </div> 

                                <div class="layui-form-item">
                                    <label class="layui-form-label">notify_url</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="payface[alipay][notify_url]" value="{$config.payface.alipay.notify_url}" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux"><font color="red">*</font>  {:__('支付成功异步服务器通知地址,业务逻辑')}</div> 
                                </div> 
                                <div class="layui-form-item">
                                    <label class="layui-form-label">alipay_public_cert_path</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="payface[alipay][alipay_public_cert_path]" value="{$config.payface.alipay.alipay_public_cert_path}" class="layui-input cert_client">
                                    </div>
                                    <button type="button" class="layui-btn layui-btn-normal" lay-upload="" lay-input="cert_client">{:__('上传支付宝公钥证书')}</button>
                                </div> 
                                <div class="layui-form-item">
                                    <label class="layui-form-label">alipay_root_cert_path</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="payface[alipay][alipay_root_cert_path]" value="{$config.payface.alipay.alipay_root_cert_path}" class="layui-input cert_key">
                                    </div>
                                   <button type="button" class="layui-btn layui-btn-normal" lay-upload="" lay-input="cert_key">{:__('上传支付宝根证书')}</button>
                                </div>              

                                <!-- // 微信支付开始 -->
                                <div class="layui-card-header"  style="margin-bottom:20px;" ><i class="layui-icon">
                                    <img src="/static/images/interface/wechat.png" width="16" height="16" alt="">
                                </i>{:__('微信支付')}</div>   
                                <div class="layui-form-item">
                                    <label class="layui-form-label">支付模式</label>
                                    <div class="layui-input-inline">
                                        <input type="radio" name="payface[wechat][mode]"   
                                        value="0" title="正式环境" <if condition="$config['payface']['wechat']['mode'] eq 0 "> checked </if> >
                                        <input type="radio" name="payface[wechat][mode]"   
                                        value="1" title="仿真环境" <if condition="$config['payface']['wechat']['mode'] eq 1 "> checked </if> >
                                    </div>    
                                    <div class="layui-form-mid layui-word-aux">* 仿真环境下，请使用sandboxnew地址访问</div>           
                                </div>  

                                <div class="layui-form-item">
                                    <label class="layui-form-label">商户ID</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="payface[wechat][mch_id]" placeholder="{:__('必填')}" 
                                        value="{$config.payface.wechat.mch_id}" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux"><font color="red">*</font>  {:__('微信支付绑定商户号的MCH_ID')}</div> 
                                </div> 
                                
                                <div class="layui-form-item">
                                    <label class="layui-form-label">商户私钥</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="payface[wechat][mch_secret_key]" placeholder="{:__('必填')}" 
                                        value="{$config.payface.wechat.mch_secret_key}" class="layui-input">
                                    </div>   
                                    <div class="layui-form-mid layui-word-aux">* {:__('微信商户平台V3版秘钥')}</div>      
                                </div>
                                
                                <div class="layui-form-item">
                                    <label class="layui-form-label">公众号ID</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="payface[wechat][mp_app_id]" placeholder="{:__('选填')}" 
                                        value="{$config.payface.wechat.mp_app_id}" class="layui-input">
                                    </div>   
                                    <div class="layui-form-mid layui-word-aux">* {:__('微信公众号ID')}</div>      
                                </div>

                                <div class="layui-form-item">
                                    <label class="layui-form-label">小程序ID</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="payface[wechat][mini_app_id]" placeholder="{:__('选填')}" 
                                         value="{$config.payface.wechat.mini_app_id}" class="layui-input">
                                    </div>   
                                    <div class="layui-form-mid layui-word-aux">* {:__('微信小程序ID')}</div>      
                                </div>

                                <div class="layui-form-item">
                                    <label class="layui-form-label">回调地址</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="payface[wechat][notify_url]" placeholder="{:__('必填')}" 
                                        value="{$config.payface.wechat.notify_url}" class="layui-input">
                                    </div>   
                                    <div class="layui-form-mid layui-word-aux"><font color="red">*</font>  {:__('微信支付成功回调地址')}</div>      
                                </div>

                                <div class="layui-form-item">
                                    <label class="layui-form-label">商户私钥证书</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="payface[wechat][mch_secret_cert]" value="{$config.payface.wechat.mch_secret_cert}" class="layui-input wxcert_client">
                                    </div>
                                    <button type="button" class="layui-btn layui-btn-normal" lay-upload="" lay-input="wxcert_client">{:__('上传V3私钥证书')}</button>
                                </div> 
                                <div class="layui-form-item">
                                    <label class="layui-form-label">商户公钥证书</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="payface[wechat][mch_public_cert_path]" value="{$config.payface.wechat.mch_public_cert_path}" class="layui-input wxcert_key">
                                    </div>
                                   <button type="button" class="layui-btn layui-btn-normal" lay-upload="" lay-input="wxcert_key">{:__('上传V3公钥证书')}</button>
                                </div>  

                              </div>
                            </div>


                            <div class="layui-colla-item">
                              <h2 class="layui-colla-title"><i class="layui-icon layui-icon-cellphone layui-color-blue" ></i>{:__('短信SMS接口')}</h2>
                              <div class="layui-colla-content">

                                <div class="layui-card-header"  style="margin-bottom:20px;" ><i class="layui-icon">
                                    <img src="/static/images/interface/aliyun.png?12x" width="16" height="16" alt="">
                                </i>{:__('阿里SMS短信')}</div>   

                                <div class="layui-form-item">
                                    <label class="layui-form-label">{:__('短信服务商')}</label>
                                    <div class="layui-input-inline" >
                                        <select name="smsface[type]" >
                                            <option value="alisms" <eq name="$config['smsface']['type']" value="alisms" > selected="" </eq> >{:__('阿里云短信')}</option>
                                            <option value="tensms" <eq name="$config['smsface']['type']" value="tensms" > selected="" </eq> >{:__('腾讯云短信')}</option>
                                        </select>
                                    </div> 
                                    <div class="layui-form-mid layui-word-aux" >* <font color="red"> {:__('请选择短信服务商类型')}！。</font></div>  
                                </div>  

                                <div class="layui-form-item">
                                    <label class="layui-form-label">APP_ID</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="smsface[alisms][app_id]" value="{$config.smsface.alisms.app_id}" class="layui-input"  >
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">* {:__('阿里云SMS服务器的Region Id')}。 </div> 
                                </div> 
                                <div class="layui-form-item">
                                    <label class="layui-form-label">APP_SIGN</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="smsface[alisms][app_sign]"  value="{$config.smsface.alisms.app_sign}" class="layui-input">
                                    </div>        
                                    <div class="layui-form-mid layui-word-aux">* {:__('使用SMS服务所需的公司短信签名')}。</div> 
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">ACCESS_ID</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="smsface[alisms][access_id]"  value="{$config.smsface.alisms.access_id}" class="layui-input">
                                    </div>        
                                    <div class="layui-form-mid layui-word-aux">* {:__('访问阿里云API的密钥的AccessKey ID')}。</div> 
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">ACCESS_SECRET</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="smsface[alisms][access_secret]"  value="{$config.smsface.alisms.access_secret}" class="layui-input">
                                    </div>        
                                    <div class="layui-form-mid layui-word-aux">* {:__('访问阿里云API的密钥的AccessKey Secret')}。</div> 
                                </div>                                
                            
                                <div class="layui-card-header"  style="margin-bottom:20px;" ><i class="layui-icon">
                                    <img src="/static/images/interface/qcloud.png" width="16" height="16" alt="">
                                </i>{:__('腾讯SMS短信')}</div>   
                                <div class="layui-form-item">
                                    <label class="layui-form-label">APP_ID</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="smsface[tensms][app_id]" value="{$config.smsface.tensms.app_id}" class="layui-input"  >
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">* {:__('腾讯SMS服务应用列表中应用的SDK AppID')}。</div> 
                                </div> 

                                <div class="layui-form-item">
                                    <label class="layui-form-label">APP_SIGN</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="smsface[tensms][app_sign]" value="{$config.smsface.tensms.app_sign}" class="layui-input"  >
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">* {:__('在腾讯SMS服务国内短信中可以看到该签名')}。</div> 
                                </div> 

                                <div class="layui-form-item">
                                    <label class="layui-form-label">SECRET_ID</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="smsface[tensms][secret_id]"  value="{$config.smsface.tensms.secret_id}" class="layui-input">
                                    </div>        
                                    <div class="layui-form-mid layui-word-aux">* {:__('您在腾讯云中API密钥的SecretId')}。</div> 
                                </div>

                                <div class="layui-form-item">
                                    <label class="layui-form-label">SECRET_KEY</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="smsface[tensms][secret_key]"  value="{$config.smsface.tensms.secret_key}" class="layui-input">
                                    </div>        
                                    <div class="layui-form-mid layui-word-aux"><font color="red">* {:__('您在腾讯云中API密钥的SecretKey，建议创建子密钥使用')}。</font></div> 
                                </div>

                              </div>
                            </div>
                            <div class="layui-colla-item">
                              <h2 class="layui-colla-title"><i class="layui-icon layui-icon-dialogue layui-color-blue" ></i>{:__('微信公众号接口')}</h2>
                              <div class="layui-colla-content">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">APP_ID</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="mpwechat[secret_id]"  value="{$config.mpwechat.secret_id}" class="layui-input">
                                    </div>        
                                    <div class="layui-form-mid layui-word-aux">* {:__('开发者ID是公众号开发识别码，配合开发者密码可调用公众号的接口能力')}。</div> 
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">APP_SECRET</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="mpwechat[secret_key]"  value="{$config.mpwechat.secret_key}" class="layui-input">
                                    </div>        
                                    <div class="layui-form-mid layui-word-aux"><font color="red">* {:__('开发者密码是校验公众号开发者身份的密码，具有极高的安全性。')}。</font></div> 
                                </div>                               
                                <div class="layui-form-item">
                                    <label class="layui-form-label">APP_TOKEN</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="mpwechat[secret_token]"  value="{$config.mpwechat.secret_token}" class="layui-input">
                                    </div>        
                                    <div class="layui-form-mid layui-word-aux">* {:__('微信公众平台令牌(Token)')}。</div> 
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">ENCODING_KEY</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="mpwechat[EncodingAESKey]"  value="{$config.mpwechat.EncodingAESKey}" class="layui-input">
                                    </div>        
                                    <div class="layui-form-mid layui-word-aux"><font color="red">* {:__('消息加解密密钥将用于消息体加解密')}。</font></div> 
                                </div> 
                              </div>
                            </div>
                          </div>   

   
                    </div>
                  <!-- // 接口信息配置结束 -->
                  <div class="layui-tab-item">

                    <div class="layui-card-header" style="margin-bottom: 20px;">{:__('用户注册')}</div>                   
                    <div class="layui-form-item">
                       <label class="layui-form-label" >{:__('注册开关')}</label>
                        <div class="layui-input-inline" >
                            <input type="radio" name="user[user_status]"   
                            value="1" title="{:__('开启')}"  <if condition="$config['user']['user_status'] eq 1 "> checked </if> >
                            <input type="radio" name="user[user_status]"   
                            value="0" title="{:__('关闭')}" <if condition="$config['user']['user_status'] eq 0 "> checked </if> >
                        </div>                      
                        <div class="layui-form-mid layui-word-aux">* {:__('默认开启，如不需要可关闭')}。</div>                  
                    </div> 

                    <div class="layui-form-item">
                        <label class="layui-form-label" >{:__('注册方式')}</label>
                         <div class="layui-input-inline" >
                             <input type="radio" name="user[user_register_style]"   
                             value="normal" title="{:__('普通')}"  <if condition="$config['user']['user_register_style']  eq 'normal' "> checked </if> >
                            <input type="radio" name="user[user_register_style]"   
                             value="mobile" title="{:__('手机')}" <if condition="$config['user']['user_register_style'] eq 'mobile' "> checked </if> >
                             <input type="radio" name="user[user_register_style]"   
                             value="regcode" title="{:__('邀请码')}" <if condition="$config['user']['user_register_style'] eq 'regcode' "> checked </if> >
                         </div>                      
                         <div class="layui-form-mid layui-word-aux"> <font color="red">* {:__('邀请码注册默认状态为已审核')}！</font> </div>                  
                     </div>                     

                    <div class="layui-form-item ">
                        <label class="layui-form-label">{:__('允许用户投稿')}</label>
                         <div class="layui-input-inline" >
                            <input type="radio" name="user[user_document]"   
                            value="1" title="{:__('开启')}"  <if condition="$config['user']['user_document'] eq 1 "> checked </if> >
                            <input type="radio" name="user[user_document]"   
                            value="0" title="{:__('关闭')}" <if condition="$config['user']['user_document'] eq 0 "> checked </if> >
                         </div> 
                         <div class="layui-form-mid layui-word-aux">* {:__('是否支持用户投稿到栏目')}。</div>
                    </div>
                    
                    <div class="layui-form-item ">
                        <label class="layui-form-label">{:__('开启违禁词检测')}</label>
                         <div class="layui-input-inline" >
                            <input type="radio" name="user[user_sensitive]"   
                            value="1" title="{:__('开启')}"  <if condition="$config['user']['user_sensitive'] eq 1 "> checked </if> >
                            <input type="radio" name="user[user_sensitive]"   
                            value="0" title="{:__('关闭')}" <if condition="$config['user']['user_sensitive'] eq 0 "> checked </if> >
                         </div> 
                         <div class="layui-form-mid layui-word-aux">* {:__('用户投稿违禁词检测，默认开启')}。</div>
                    </div>
                    <div class="layui-form-item ">
                        <label class="layui-form-label">{:__('投稿获得积分')}</label>
                         <div class="layui-input-inline" >
                             <input type="text" name="user[user_document_integra]" autocomplete="off" value="{$config.user.user_document_integra}" class="layui-input">
                         </div> 
                         <div class="layui-form-mid layui-word-aux">* {:__('用户投稿获得的初始积分')}</div>
                    </div>
    
                    <div class="layui-form-item ">
                       <label class="layui-form-label">{:__('激活码有效期')}</label>
                        <div class="layui-input-inline" >
                            <input type="text" name="user[user_valitime]" autocomplete="off" value="{$config.user.user_valitime}" class="layui-input">
                        </div>
                        <div class="layui-form-mid layui-word-aux">* {:__('用户激活码的有效期，默认10分钟')}。</div> 
                    </div>

                    <div class="layui-form-item ">
                       <label class="layui-form-label">{:__('每日注册')}</label>
                        <div class="layui-input-inline" >
                            <input type="text" name="user[user_register_second]" autocomplete="off" value="{$config.user.user_register_second}" class="layui-input">
                        </div> 
                        <div class="layui-form-mid layui-word-aux">* {:__('每日用户单IP注册最大数量')}</div>
                    </div>


                    <div class="layui-form-item ">
                        <label class="layui-form-label">{:__('登录获得积分')}</label>
                         <div class="layui-input-inline" >
                             <input type="text" name="user[user_login_integra]" autocomplete="off" value="{$config.user.user_login_integra}" class="layui-input">
                         </div> 
                         <div class="layui-form-mid layui-word-aux">* {:__('用户每日登录获得积分')}。</div>
                    </div>
                    
                    <div class="layui-form-item ">
                        <label class="layui-form-label">{:__('推广获得积分')}</label>
                         <div class="layui-input-inline" >
                             <input type="text" name="user[user_spread_integra]" autocomplete="off" value="{$config.user.user_spread_integra}" class="layui-input">
                         </div> 
                         <div class="layui-form-mid layui-word-aux">* {:__('用户推广会员获得积分')}</div>
                    </div>

                    <div class="layui-form-item ">
                        <label class="layui-form-label">{:__('用户搜索间隔')}</label>
                         <div class="layui-input-inline" >
                             <input type="text" name="user[user_search_interval]" autocomplete="off" value="{$config.user.user_search_interval}" class="layui-input">
                         </div> 
                         <div class="layui-form-mid layui-word-aux">* {:__('用户搜索，查询数据间隔，单位 / 秒')}</div>
                    </div>                     


                    <div class="layui-form-item ">
                        <label class="layui-form-label">{:__('禁止注册')}</label>
                         <div class="layui-input-inline" >
                             <input type="text" name="user[user_reg_notallow]" autocomplete="off" value="{$config.user.user_reg_notallow}" class="layui-input">
                         </div> 
                         <div class="layui-form-mid layui-word-aux">* {:__('禁止注册的用户名！')}</div>   
                     </div>                    
    
                    <div class="layui-card-header" style="margin-bottom: 20px;">{:__('评论留言设置')}</div> 
                    <div class="layui-form-item">
                       <label class="layui-form-label" >{:__('评论开关')}</label>
                        <div class="layui-input-inline" >
                            <input type="radio" name="user[user_form_status]"   
                            value="1" title="{:__('开启')}"  <if condition="$config['user']['user_form_status'] eq 1 "> checked </if> >
                            <input type="radio" name="user[user_form_status]"   
                            value="0" title="{:__('关闭')}" <if condition="$config['user']['user_form_status'] eq 0 "> checked </if> >
                        </div>    
                        <div class="layui-form-mid layui-word-aux">* {:__('默认开启，如不需要可关闭')}！。</div>                   
                    </div> 
    
                    <div class="layui-form-item">
                        <label class="layui-form-label" >{:__('评论审核')}</label>
                        <div class="layui-input-inline" >
                            <input type="radio" name="user[user_form_check]"   
                            value="1" title="{:__('开启')}"  <if condition="$config['user']['user_form_check'] eq 1 "> checked </if> >
                            <input type="radio" name="user[user_form_check]"   
                            value="0" title="{:__('关闭')}" <if condition="$config['user']['user_form_check'] eq 0 "> checked </if> >
                        </div>    
                        <div class="layui-form-mid layui-word-aux">* {:__('开启后需要审核评论才会展示')}。</div>                   
                    </div> 
    
                    <div class="layui-form-item">
                       <label class="layui-form-label" >{:__('游客评论')}</label>
    
                        <div class="layui-input-inline" >
                            <input type="radio" name="user[user_isLogin]"   
                            value="1" title="{:__('开启')}"  <if condition="$config['user']['user_isLogin'] eq 1 "> checked </if> >
                            <input type="radio" name="user[user_isLogin]"   
                            value="0" title="{:__('关闭')}" <if condition="$config['user']['user_isLogin'] eq 0 "> checked </if> >
                        </div>    
    
                        <div class="layui-form-mid layui-word-aux">* {:__('开启后需要审核评论才会展示')}！</div>                   
                    </div> 

                    <div class="layui-form-item">
                        <label class="layui-form-label" >{:__('匿名评论')}</label>
     
                         <div class="layui-input-inline" >
                             <input type="radio" name="user[user_anonymous]"   
                             value="1" title="{:__('开启')}"  <if condition="$config['user']['user_anonymous'] eq 1 "> checked </if> >
                             <input type="radio" name="user[user_anonymous]"   
                             value="0" title="{:__('关闭')}" <if condition="$config['user']['user_anonymous'] eq 0 "> checked </if> >
                         </div>    
     
                         <div class="layui-form-mid layui-word-aux"><font color="red">* {:__('用户登录后是否可以匿名发表评论')}！</font></div>                   
                    </div>  

                    <div class="layui-form-item ">
                       <label class="layui-form-label">{:__('评论间隔')}</label>
                        <div class="layui-input-inline" >
                            <input type="text" name="user[user_form_second]" autocomplete="off" value="{$config.user.user_form_second}" class="layui-input">
                        </div>
                        <div class="layui-form-mid layui-word-aux">* {:__('用户评论间隔秒数')}。</div> 
                    </div> 
                    <div class="layui-form-item ">
                       <label class="layui-form-label">{:__('脏话过滤')}</label>
                        <div class="layui-input-inline" >
                            <input type="text" name="user[user_replace]" autocomplete="off" value="{$config.user.user_replace}" class="layui-input">
                        </div> 
                    </div> 
                  </div>

                  <div class="layui-tab-item">


                     <div class="layui-card">

                        <table class="layui-table" lay-skin="nob">
                        <colgroup>
                          <col width="100">
                          <col width="200">
                          <col width="100">
                        </colgroup>
                        <thead>
                          <tr>
                            <th>变量名</th>
                            <th>变量值</th>
                            <th>操作</th>
                          </tr> 
                        </thead>
                        <tbody id="layui-variable-content">

                          <volist name="$config['variable']" id="vo">
                          <tr>
                            <td><input type="text" value="{$key}" class="layui-input layui-variable-key"  lay-verify="required" ></td>
                            <td><input type="text" name="variable[{$key}]" value="{$vo}" class="layui-input layui-variable-value"></td>
                            <td><button type="button" class="layui-btn layui-btn-primary layui-btn-sm"><i class="layui-icon layui-icon-delete"></i></button></td>
                          </tr>
                          </volist>

                        </tbody>
                      </table> 
    
                    </div>
                    <button type="button" class="layui-btn layui-btn-normal layui-variable-add" >{:__('增加变量')}</button>
                  </div>


                   
                </div>
                <div class="layui-form-item layui-layout-admin" style="display: block;">
                    <div class="layui-input-block">
                        <div class="layui-footer" id="layui-footer-btn">
                            <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="submitIframe">{:__('立即提交')}</button>
                            <button type="reset" class="layui-btn layui-btn-primary">{:__('重置')}</button>
                        </div>
                    </div>
                </div>
              </div>
            </form>
            </div>
        </div>
    </div>
</div>


<include file="/public/footer" />

<script>
    layui.use(['form','jquery','layedit'], function () {
 
        var form = layui.form;
        var jquery = layui.jquery;
        // 渲染富文本编辑器
        var layedit = layui.layedit;
        var layindex = layedit.build('site_notice', {height: 110,color: '#ffffff'});     
        // 异步验证表单
        form.verify({
            siteClose: function(value) { 
                return layedit.sync(layindex);
            }
        });

        // 增加变量
        jquery('.layui-variable-add').on('click',function(){
            var html = '<tr>';
                html += '<td><input type="text" class="layui-input layui-variable-key"  lay-verify="required" ><\/td>';
                html += '<td><input type="text" class="layui-input layui-variable-value"><\/td>';
                html += '<td><button type="button" class="layui-btn layui-btn-primary layui-btn-sm"><i class="layui-icon layui-icon-delete"><\/i><\/button><\/td>';
                html += '<\/tr>';
            jquery('#layui-variable-content').append(html);
        })

        // 改变表单值
        jquery('body').on('change','.layui-variable-key',function() {
            var that = jquery(this),
                name = 'variable['+ that.val() +']';
            jquery(that).parents('tr').find('.layui-variable-value').attr('name',name);
        })

        // 删除自定义变量
        jquery('body').on('click','#layui-variable-content .layui-btn',function() {
            jquery(this).parents('tr').remove();
        })
    });
</script>
</body>
</html>
